<?php /* Smarty version 2.6.18, created on 2010-09-10 14:32:30
         compiled from admin/alumni/member/list_search_member.tpl */ ?>
<form name="frmSearchListMember" id="frmSearchListMember" action="" method="">
<table border="0" cellspacing="1px" cellpadding="10px "align="center" width="100%">
	<tr>
  	<td align="left"><strong>Total:</strong>&nbsp;<?php echo $this->_tpl_vars['TOTAL']; ?>
</td>
    <td align="right"><?php echo $this->_tpl_vars['NAVIGATION_PAGE']; ?>
</td>
  </tr>
</table>
<table border="1" cellspacing="1px" cellpadding="10px "align="center" width="100%">
    <tr>
        <th width="20">#</th>
        <th width="30">Avatar</th>
        <th>Username</th>
        <th>Full name</th>
        <th width="100">Intake</th>
        <th width="60">Gender</th>
        <th width="60">Status</th>
				<th colspan="3" width="20">Action</th>        
    </tr>
    <?php $this->assign('keyList', '0'); ?>
    <?php while ($this->_tpl_vars['objListMember']->fetch()) { ?>
    <?php $this->assign('keyList', $this->_tpl_vars['keyList']+1); ?>
    <tr>
        <td><?php echo $this->_tpl_vars['intStart']+$this->_tpl_vars['keyList']; ?>
</td>
        <td>
        	<img border="0" width="50" src="<?php echo @APPLICATION_URL; ?>
images/avatar/small_<?php echo $this->_tpl_vars['objListMember']->avatar; ?>
" />
        </td>
        <td> <?php echo $this->_tpl_vars['objListMember']->username; ?>
 </td>
        <td> <?php echo $this->_tpl_vars['objListMember']->full_name; ?>
 </td>
        <td> <?php if ($this->_tpl_vars['objListMember']->intake_id > 0): ?><?php echo $this->_tpl_vars['objListMember']->intake_name; ?>
<?php else: ?>N/A<?php endif; ?> </td>
        <td> 
        	<select onchange="javascript:changeGender(this.value, <?php echo $this->_tpl_vars['objListMember']->id; ?>
)" name="gender_<?php echo $this->_tpl_vars['objListMember']->id; ?>
" id="gender_<?php echo $this->_tpl_vars['objListMember']->id; ?>
">
          	<option value="-1"<?php if ($this->_tpl_vars['objListMember']->gender < 0): ?> selected="selected"<?php endif; ?>>&nbsp;&nbsp;N/A&nbsp;&nbsp;</option>
          	<option value="0"<?php if ($this->_tpl_vars['objListMember']->gender == 0): ?> selected="selected"<?php endif; ?>>&nbsp;&nbsp;Male&nbsp;&nbsp;</option>
            <option value="1"<?php if ($this->_tpl_vars['objListMember']->gender == 1): ?> selected="selected"<?php endif; ?>>&nbsp;&nbsp;Female&nbsp;&nbsp;</option>
          </select>
        </td>
        <td>
        	<select onchange="javascript:changeStatus(this.value, <?php echo $this->_tpl_vars['objListMember']->id; ?>
)" name="status_<?php echo $this->_tpl_vars['objListMember']->id; ?>
" id="status_<?php echo $this->_tpl_vars['objListMember']->id; ?>
">
          	<option value="0"<?php if ($this->_tpl_vars['objListMember']->status == 0): ?> selected="selected"<?php endif; ?>>&nbsp;&nbsp;Inactive&nbsp;&nbsp;</option>
            <option value="1"<?php if ($this->_tpl_vars['objListMember']->status == 1): ?> selected="selected"<?php endif; ?>>&nbsp;&nbsp;Active&nbsp;&nbsp;</option>
          </select>
        </td>
        <td align="center">
        	<a href="javascript:viewMember(<?php echo $this->_tpl_vars['objListMember']->id; ?>
)" title="View">View</a>
        </td>
        <td align="center"> 
        	<a href="javascript:editMember(<?php echo $this->_tpl_vars['objListMember']->id; ?>
)" title="Edit">Edit</a>
        </td>
        <td align="center"> 
          <a href="javascript:deleteMember(<?php echo $this->_tpl_vars['objListMember']->id; ?>
)" title="Delete">Delete</a>
        </td>
    </tr>
    <?php } ?>
</table>
</form>